var libConf = {varSelector:{init:function() {
  conf = $("#divSondeConf");
  table = false
}}, varTimer:{init:function() {
  timers.add("/sonde/readresp", new Array(getConfReadResp, 10, 80)),
  valid.add('confWrite',confWrite)
}}};
function confWrite() {
  var a = conf.fnGetData();
  $.post(baseUrl + "/sonde/write/", {conf:a.toString()}, null, "json")
}
function getConfRead() {
  table == true && conf.fnClearTable();
  $.post(baseUrl + "/sonde/read/", {}, attenteReponse, "json")
}
function getConfReadResp(a) {
  if(table == false) {
    table = true;
    conf.dataTable({bFilter:false, bInfo:false, bAutoWidth:false, bLengthChange:false, bSort:false, bSortClasses:false, bSortable:false, bPaginate:false, iDisplayLength:100, aoColumns:[{sTitle:SONDE_TAB_CATEGORY, sType:"text", "sClass" : "center", sWidth:"425px"}, {sTitle:SONDE_TAB_DATA, sType:"text", "sClass" :"center", sWidth:"425px"}]})
  }
  getConfReadAdd(a)
}
function getConfReadAdd(a) {
  $.each(a.data, function(b, c) {
    conf.fnAddData(["<b>" + b + "</b>", "</span>"]);
    for(var d in c) {
      conf.fnAddData([d, c[d]])
    }
    conf.fnAddData(["-", "</span>"])
  });
  $("tbody td:nth-child(2):not(:empty)", conf).editable(function(b) {
    return b
  }, {tooltip:null, type:"text", cancel:BUTTON_CANCEL, submit:BUTTON_OK, onblur:"ignore", placeholder:" ", callback:function(b) {
    var c = conf.fnGetPosition(this);
    conf.fnUpdate(b, c[0], c[1])
  }});
  return false
}